package com.yulan.bankback.service.bank.impl;

import com.yulan.bankback.oss.AliYunOss;
import com.yulan.bankback.service.bank.OssService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

@Service
public class OssServiceImpl implements OssService {

    @Autowired
    AliYunOss aliYunOss;

    @Override
    public String upload(MultipartFile file) throws IOException {
        return aliYunOss.upload(file);
    }
}
